<?php

use yak\layui\widgets\form\ActiveForm;
use yii\helpers\Html;

/* @var $this yii\web\View */
/* @var $model yak\layui\models\AdminConfig */
/* @var $form yii\widgets\ActiveForm */
/* @var $ajaxOptions array */
?>

<div class="admin-form layui-card">

    <div class="layui-card-body">

        <?php $form = ActiveForm::begin(['ajaxOptions' => $ajaxOptions]); ?>
        
        <?= $form->field($model, '_theme')->dropDownList($model->themeLabel()) ?>

        <?= $form->field($model, 'flexible')->radioList(['展开', '收缩']) ?>

        <div class="layui-form-item layui-input-block">
            <?= Html::submitButton('立即提交', [
                'class' => 'layui-btn', 'lay-submit' => true, 'lay-filter' => '_SUBMIT_FORM'
            ]) ?>
        </div>

        <?php ActiveForm::end(); ?>


    </div>

</div>


